#include <stdio.h>
#include <stdlib.h>

int main(void) {
	int* p = malloc(sizeof(int));
	printf("%p\n", p);
	
	*p = 123;
	printf("%d\n", *p);

	free(p);

	printf("%p\n", p);
	printf("%d\n", *p);

	return 0;
}
